home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / spaceambush.swf / scripts / frame_286 / PlaceObject2_596_110 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-03-12  |  4.7 KB  |  222 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_root.j1))
  3.    {
  4.       _root.j1.att = false;
  5.       _root.j1.gotoAndStop(2);
  6.       removeMovieClip(this);
  7.    }
  8.    if(this.hitTest(_root.j2))
  9.    {
  10.       _root.j2.att = false;
  11.       _root.j2.gotoAndStop(2);
  12.       removeMovieClip(this);
  13.    }
  14.    if(this.hitTest(_root.j3))
  15.    {
  16.       _root.j3.att = false;
  17.       _root.j3.gotoAndStop(2);
  18.       removeMovieClip(this);
  19.    }
  20.    if(this.hitTest(_root.j4))
  21.    {
  22.       _root.j4.att = false;
  23.       _root.j4.gotoAndStop(2);
  24.       removeMovieClip(this);
  25.    }
  26.    if(this.hitTest(_root.j5))
  27.    {
  28.       _root.j5.att = false;
  29.       _root.j5.gotoAndStop(2);
  30.       removeMovieClip(this);
  31.    }
  32.    if(this.hitTest(_root.tripple))
  33.    {
  34.       if(_root.tripple.att == true)
  35.       {
  36.          _root.tripple.gotoAndPlay(2);
  37.          _root.tripple.att = false;
  38.          removeMovieClip(this);
  39.       }
  40.    }
  41.    if(this.hitTest(_root.laser))
  42.    {
  43.       if(_root.laser.att == true)
  44.       {
  45.          _root.laser.gotoAndPlay(2);
  46.          _root.laser.att = false;
  47.          removeMovieClip(this);
  48.       }
  49.    }
  50.    if(this.hitTest(_root.can))
  51.    {
  52.       if(_root.can.att == true)
  53.       {
  54.          _root.can.gotoAndPlay(2);
  55.          _root.can.att = false;
  56.          removeMovieClip(this);
  57.       }
  58.    }
  59.    if(this.hitTest(_root.health))
  60.    {
  61.       if(_root.health.att == true)
  62.       {
  63.          _root.health.gotoAndPlay(2);
  64.          _root.health.att = false;
  65.          removeMovieClip(this);
  66.       }
  67.    }
  68.    if(this.hitTest(_root.j6))
  69.    {
  70.       if(_root.amitavavilla < 3)
  71.       {
  72.          _root.j6.att = false;
  73.          _root.j6.gotoAndStop(3);
  74.          removeMovieClip(this);
  75.       }
  76.    }
  77.    if(this.hitTest(_root.j6a))
  78.    {
  79.       if(_root.j6a.hit < 3)
  80.       {
  81.          _root.j6a.att = false;
  82.          _root.j6a.gotoAndStop(3);
  83.          removeMovieClip(this);
  84.       }
  85.    }
  86.    if(this.hitTest(_root.caman))
  87.    {
  88.       if(_root.amitavavillb < 3)
  89.       {
  90.          _root.caman.att = false;
  91.          _root.caman.gotoAndStop(3);
  92.          removeMovieClip(this);
  93.       }
  94.    }
  95.    if(this.hitTest(_root.camana))
  96.    {
  97.       if(_root.camana.hit < 3)
  98.       {
  99.          _root.camana.att = false;
  100.          _root.camana.gotoAndStop(3);
  101.          removeMovieClip(this);
  102.       }
  103.    }
  104.    if(this.hitTest(_root.jet))
  105.    {
  106.       if(_root.amitavavillc < 4)
  107.       {
  108.          _root.jet.att = false;
  109.          _root.jet.gotoAndStop(3);
  110.          removeMovieClip(this);
  111.       }
  112.    }
  113.    if(this.hitTest(_root.jeta))
  114.    {
  115.       if(_root.jeta.hit < 4)
  116.       {
  117.          _root.jeta.att = false;
  118.          _root.jeta.gotoAndStop(3);
  119.          removeMovieClip(this);
  120.       }
  121.    }
  122.    if(this.hitTest(_root.sjet))
  123.    {
  124.       if(_root.amitavavilld < 4)
  125.       {
  126.          _root.sjet.att = false;
  127.          _root.sjet.gotoAndStop(3);
  128.          removeMovieClip(this);
  129.       }
  130.    }
  131.    if(this.hitTest(_root.sjeta))
  132.    {
  133.       if(_root.sjeta.hit < 4)
  134.       {
  135.          _root.sjeta.att = false;
  136.          _root.sjeta.gotoAndStop(3);
  137.          removeMovieClip(this);
  138.       }
  139.    }
  140.    if(this.hitTest(_root.sjet1))
  141.    {
  142.       if(_root.amitavaville < 4)
  143.       {
  144.          _root.sjet1.att = false;
  145.          _root.sjet1.gotoAndStop(3);
  146.          removeMovieClip(this);
  147.       }
  148.    }
  149.    if(this.hitTest(_root.sjet1a))
  150.    {
  151.       if(_root.sjet1a.hit < 4)
  152.       {
  153.          _root.sjet1a.att = false;
  154.          _root.sjet1a.gotoAndStop(3);
  155.          removeMovieClip(this);
  156.       }
  157.    }
  158.    if(this.hitTest(_root.sjet2))
  159.    {
  160.       if(_root.amitavavillf < 4)
  161.       {
  162.          _root.sjet2.att = false;
  163.          _root.sjet2.gotoAndStop(3);
  164.          removeMovieClip(this);
  165.       }
  166.    }
  167.    if(this.hitTest(_root.sjet2a))
  168.    {
  169.       if(_root.sjet2a.hit < 4)
  170.       {
  171.          _root.sjet2a.att = false;
  172.          _root.sjet2a.gotoAndStop(3);
  173.          removeMovieClip(this);
  174.       }
  175.    }
  176.    if(this.hitTest(_root.j7))
  177.    {
  178.       _root.j7.att = false;
  179.       _root.j7.gotoAndStop(2);
  180.       removeMovieClip(this);
  181.    }
  182.    if(this.hitTest(_root.j8))
  183.    {
  184.       _root.j8.att = false;
  185.       _root.j8.gotoAndStop(2);
  186.       removeMovieClip(this);
  187.    }
  188.    if(this.hitTest(_root.j9))
  189.    {
  190.       _root.j9.att = false;
  191.       _root.j9.gotoAndStop(2);
  192.       removeMovieClip(this);
  193.    }
  194.    if(this.hitTest(_root.j10))
  195.    {
  196.       _root.j10.att = false;
  197.       _root.j10.gotoAndStop(2);
  198.       removeMovieClip(this);
  199.    }
  200.    if(this._y < 70)
  201.    {
  202.       removeMovieClip(this);
  203.    }
  204.    if(585 < this._y)
  205.    {
  206.       removeMovieClip(this);
  207.    }
  208.    if(this._x < 15)
  209.    {
  210.       removeMovieClip(this);
  211.    }
  212.    if(565 < this._x)
  213.    {
  214.       removeMovieClip(this);
  215.    }
  216.    if(String(_name) != "shota")
  217.    {
  218.       _X = _X + xmove;
  219.       _Y = _Y + ymove;
  220.    }
  221. }
  222.